package
{
	import com.happystreet.FlashVarsCollector;
	import com.happystreet.Game;
	import com.happystreet.config.AchievementsConfig;
	import com.happystreet.config.AssetsConfig;
	import com.happystreet.config.CollectionsConfig;
	import com.happystreet.config.CustomersConfig;
	import com.happystreet.config.GiftsConfig;
	import com.happystreet.config.GoodsConfig;
	import com.happystreet.config.HistoryConfig;
	import com.happystreet.config.JobsConfig;
	import com.happystreet.config.MaterialsConfig;
	import com.happystreet.config.MissionsConfig;
	import com.happystreet.config.MyPhoneStoreConfig;
	import com.happystreet.config.PartsConfig;
	import com.happystreet.config.ShopsConfig;
	import com.happystreet.config.TextConfig;
	import com.happystreet.interfaces.IApplication;
	import com.happystreet.interfaces.ILoader;
	
	import flash.display.Sprite;
	
	[SWF(width="760", height="620", backgroundColor="#000000")]
	public class StreetGame extends Game implements IApplication
	{
		public function StreetGame()
		{
			
		}
		
		public function start(loader:ILoader):void
		{
			myStreetLoader = loader;
			//配置分配
			new FlashVarsCollector(loader.flashVars);
			PartsConfig.setPartsConfig(loader.partsConfigData);
			MaterialsConfig.setMaterialsConfig(loader.materialsConfigData);
			AssetsConfig.setAssetsConfig(loader.assetsConfigData);
			ShopsConfig.setShopsConfig(loader.shopsConfigData);
			GoodsConfig.setGoodsConfig(loader.goodsConfigData);
			//TextConfig.setTextContent(loader.textConfigData);
			//CustomersConfig.setCustomersConfig(loader.customersConfigData);
			//JobsConfig.setJobsConfig(loader.josConfigData);
			//GiftsConfig.setGiftsConfig(loader.goodsConfigData);
			//AchievementsConfig.setAchievementsConfig(loader.achievementsConfigData);
			//HistoryConfig.setHistoryConfig(loader.histroyConfigData);
			//MissionsConfig.setMissionsConfig(loader.missionConfigData);
			//MyPhoneStoreConfig.setStoreConfig(loader.storeConfigData);
			//CollectionsConfig.setCollectionsConfig(loader.collectionsConfigData);
			init();
		}
	}
}